#ifndef AFFAIRS_H
#define AFFAIRS_H

#include <QWidget>
#include <QSqlTableModel>

namespace Ui {
class affairs;
}

class affairs : public QWidget
{
    Q_OBJECT

public:
    explicit affairs(QWidget *parent = 0);
    ~affairs();

private slots:
    void on_calendarButton_clicked();

    void on_addButton_clicked();

    void on_deleteButton_clicked();

    void on_exitButton_clicked();

protected:
    void UpdateView();

private:
    Ui::affairs *ui;
    QSqlTableModel *model;
    QString date;
};

#endif // AFFAIRS_H
